import request from '@/utils/request.js'



export const registerService = (registerData) => {
    var params = new URLSearchParams()
    for (let key in registerData) {
        params.append(key, registerData[key])
    }
    return request.post('/user/register', params)
}


export const loginService = (registerData) => {
    return request.post('/user/login', registerData)
}

export const updatePwdService = (params) => {
    return request.put('/user/updatePwd', params)
}

export const userInfoService = () => {
    return request.get('/user/selectUserInfo')
}